package com.campusmarket.mapper;

import com.campusmarket.common.base.BaseMapper;
import com.campusmarket.dto.CommodityDto;
import com.campusmarket.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<User> {

    User selectByAccount(String username);

    Integer selectCount();

    List<User> selectList(@Param("page") Integer page, @Param("rows") Integer rows, @Param("keywords") String keywords);

}
